<template>
	<view>
		<view @click="addNum">num: {{num}}</view>
		<uni-badge text="10" type="primary"></uni-badge>
	</view>
</template>

<script>
	import {mapState, mapMutations } from 'vuex'
	export default {
		name:"testA",
		data() {
			return {
				
			};
		},
		computed: {
			...mapState(['num'])
		},
		methods:{
			...mapMutations(['addNum'])
		}
	}
</script>

<style>

</style>